package com.clw.template.mapper;

import com.clw.template.dto.PermissionDTO;
import com.clw.template.dto.Tree;
import com.clw.template.entity.SysPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author clw
 * @since 2019-11-01
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

    List<PermissionDTO> selectPermissionList(@Param("pId") Long pId);

    List<String> selectByPermissions(@Param("roleId") Long roleId);

    List<Tree> selectPermissionTree(@Param("pId") Long pId);

}
